<template>
  <view class="data-empty">
    <image v-if="type === 'task'" src="@/static/image/empty-task.png"></image>
    <image v-else-if="type === 'skill'" src="@/static/image/empty-skill.png"></image>
    <image v-else src="@/static/image/empty.png"></image>
    <text>{{
      type === "task"
        ? "您还没有相关任务"
        : type === "skill"
        ? "暂无技能，快去网页端添加吧"
        : "暂无数据"
    }}</text>
  </view>
</template>
<script>
export default {
  props: ["type"],
};
</script>

